package com.example.design_pattern.visitor;

public class Pc extends Composite {

    public Pc(){
        add(new Case());
        add(new HardDisk());
        add(new IntegratedBoard());
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitPc(this);
    }
}
